Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 9b56751a21e4cca5a642a49a845d0888e2f9d18d


Parents : 4071c79
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-13T22:03:52-05:00

feat(toast): add dismiss method to ToastUtils for handling toast notifications

Changes

1 files changed, 7 insertions(+), 0 deletions(-)


Diff

diff --git a/meshchatx/src/frontend/js/ToastUtils.js b/meshchatx/src/frontend/js/ToastUtils.js
index ca328d01..aafddf44 100644
--- a/meshchatx/src/frontend/js/ToastUtils.js
+++ b/meshchatx/src/frontend/js/ToastUtils.js
@@ -24,6 +24,13 @@ class ToastUtils {
static loading(message, duration = 0, key = null) {
this.show(message, "loading", duration, key);
}
+
+ static dismiss(key) {
+ if (key == null) {
+ return;
+ }
+ GlobalEmitter.emit("toast-dismiss", { key });
+ }
}
export default ToastUtils;


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────